package com.itheima01.day08;

import java.util.Scanner;

/**
 * @author 刘全
 * @date 2021/7/9
 */
public class String2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入");
        String s = sc.nextLine();
        char[] chars = s.toCharArray();
        int bigcount = 0;
        int smallcount = 0;
        int numcount = 0;
        for (int i = 0; i < chars.length; i++) {
            int c = chars[i];
            if (c >= 'a' && c <= 'z') {
                smallcount++;
            } else if (c >= 'A' && c <= 'z') {
                bigcount++;
            } else if (c >= '0' && c <= '9') {
                numcount++;
            }
        }
        System.out.println("小写字母的个数为:" + smallcount);
        System.out.println("大写字母的个数为:" + bigcount);
        System.out.println("数字的个数为:" + numcount);
    }
}
